import { createRouter, createWebHistory } from "vue-router";

// import Home from "../views/Home.vue";
// import AggregationServer from "../views/AggregationServer.vue";
// import TraceServer from "../views/TraceServer.vue";
// import Clients from "../views/Clients.vue";
// import Local from "../views/Local.vue";
// import LoadModel from "../views/LoadModel.vue";
import Client from "../views/Client.vue"
// import Client1 from "../views/Client1.vue"
// import Client2 from "../views/Client2.vue"
// import ServerAgg from "../views/ServerAgg.vue";
// import ServerTrace from "../views/ServerTrace.vue";

const routes = [
  {
    path: "/",
    name: "/",
    redirect: "/Client",
  },
  // {
  //   path: "/Home",
  //   name: "系统概览",
  //   component: Home,
  // },
  // {
  //   path: "/AggregationServer" ,
  //   name: "聚合服务器",
  //   component: AggregationServer,
  // },
  //   {
  //   path: "/TraceServer",
  //   name: "追踪服务器",
  //   component: TraceServer,
  // },
  //   {
  //   path: "/Clients",
  //   name: "本地客户端",
  //   component: Clients,
  // },
  //   {
  //   path: "/LoadModel",
  //   name: "下载模型",
  //   component: LoadModel,
  // },
  // {
  //   path: "/local",
  //   name: "local",
  //   component: Local,
  // },
  {
    path: "/Client",
    name: "Client",
    component: Client,
  },
  // {
  //   path: "/Client1",
  //   name: "Client1",
  //   component: Client1,
  // },
  // {
  //   path: "/Client2",
  //   name: "Client2",
  //   component: Client2,
  // },
  // {
  //   path: "/ServerAgg",
  //   name: "ServerAgg",
  //   component: ServerAgg,
  // },
  // {
  //   path: "/ServerTrace",
  //   name: "ServerTrace",
  //   component: ServerTrace,
  // },



];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
  linkActiveClass: "active",
});


export default router;
